import request from '@/utils/request'

export function fetchCustomList(query) {
  return request({
    url: '/makeup/custom/list',
    method: 'get',
    params: query
  })
}

export function getCustomInfo(id) {
  return request({
    url: '/makeup/custom/info/' + id,
    method: 'get',
  })
}

export function createCustom(data) {
  return request({
    url: '/makeup/custom/save',
    method: 'post',
    data: data
  })
}

export function updateCustom(data) {
  return request({
    url: '/makeup/custom/update',
    method: 'post',
    data: data
  })
}

export function deleteCustom(data) {
  return request({
    url: '/makeup/custom/delete',
    method: 'post',
    data: data
  })
}